#include "Stack.h"

int main()
{
	Stack ps = {0};
	StackInit(&ps);

	StackPush(&ps, 1);
	StackPush(&ps, 2);
	StackPush(&ps, 3);
	StackPush(&ps, 4);

	StackPop(&ps);


	while (ps.top != 0)
	{
		printf("%d ", StackTop(&ps));
		StackPop(&ps);
	}


	return 0;
}